.class public Llt/noframe/gpsfarmguide/import_fields/ImportedFields;
.super Ljava/lang/Object;
.source "ImportedFields.java"


# direct methods
.method public static deselectMeasure(Z)V
    .locals 2

    .line 31
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    .line 32
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 33
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->unmarkMeasure()V

    if-eqz p0, :cond_0

    .line 34
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object p0

    if-eqz p0, :cond_0

    .line 35
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getGui()Llt/noframe/gpsfarmguide/gui/Gui;

    move-result-object p0

    const/4 v1, 0x0

    invoke-interface {p0, v1}, Llt/noframe/gpsfarmguide/gui/Gui;->clearGui(I)V

    .line 36
    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object p0

    new-instance v0, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/states/map_states/FreeMapState;-><init>()V

    invoke-virtual {p0, v0}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    :cond_0
    return-void
.end method
